package com.wzy.projectManagement.commond
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.wzy.projectManagement.business.ProjectDeledate;
	import com.wzy.projectManagement.event.SaveProjectEvent;
	import com.wzy.projectManagement.titleWindow.TWAddProject;
	
	import mx.rpc.IResponder;

	public class SavaProjectCommond implements IResponder, ICommand
	{
		private var tw : TWAddProject;
		public function SavaProjectCommond()
		{
		}
		public function result(data:Object):void
		{
			var temp : Object = Object(data.result);
			tw.refreshAction(temp);
		}
		public function fault(info:Object):void
		{
		}
		public function execute(event:CairngormEvent):void
		{
			var e : SaveProjectEvent = SaveProjectEvent(event);
			var deledate : ProjectDeledate = new ProjectDeledate(this);
			deledate.saveProject(e.vo);
			tw = e.tw;
		}
	}
}